<?php

namespace App\Models\Personnel;

use App\Models\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class PersonnelFile extends Model
{
    protected $table = 'akbus_personnel_file';


    protected $fillable = [
        'type',
        'file_name',
        'file_path',
        'file_type',
        'file_size',
        'user_id',
        'personnel_id',
        'note',
    ];
    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    public function personnel(): BelongsTo
    {
        return $this->belongsTo(Personnel::class);
    }
}
